

package com.walk.zworld.ui.fragment.square

import android.view.View
import com.walk.zworld.square.daily.DailyAdapter
import com.walk.zworld.square.daily.DailyViewModel
import com.walk.zworld.square.model.Daily
import com.base.lib.base.view.BaseMvvmListFragment

/**
 * 首页-日报列表界面。
 */
class DailyFragment : BaseMvvmListFragment<Daily.Item, DailyViewModel, DailyAdapter>() {


    override fun onBindAdapter(): Class<DailyAdapter> = DailyAdapter::class.java

    override fun initBindAdapter(): DailyAdapter {
        return DailyAdapter(this);
    }

    override fun onBindViewModel(): Class<DailyViewModel> = DailyViewModel::class.java

    override fun initView(mView: View) {
        showInitLoadView()
    }

    override fun initData() {
        onRefreshEvent()
    }

    companion object {
        fun newsInstance() = DailyFragment()
    }
}
